#!/usr/bin/env bash
#
#需要修改 webssh/utils.py 第92行，这个端口号为 django 的端口号
bash -c cd /opt/CobblerWeb/webssh; env "PYTHONUNBUFFERED"="1"  "PYTHONOPTIMIZE"="1" "PYTHONPATH"="/opt/CobblerWeb"   "PYTHONIOENCODING"="UTF-8" nohup /opt/py3/bin/python -u /opt/CobblerWeb/webssh/main.py &

##django cmd

bash -c cd /opt/CobblerWeb; env "PYTHONOPTIMIZE"="1"  "DJANGO_SETTINGS_MODULE"="CobblerWeb.settings" "PYTHONPATH"="/opt/CobblerWeb" "PYTHONUNBUFFERED"="1"  "PYTHONIOENCODING"="UTF-8" nohup /opt/py3/bin/python -u /opt/CobblerWeb/manage.py runserver 0.0.0.0:8000 &

